<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>Hello World</h1>
<script>

    Promise.resolve('1')
        .then(res => {
            console.log(res)
        })
        .finally(() => {
            console.log('finally')
        })
    Promise.resolve('2')
        .finally(() => {
            console.log('finally2')
        })
        .then(res => {
            console.log('finally2后的then函数', res)
        })

</script>
</body>
</html>